-- GENERATED SPELL FOR [Felguard Legionnaire] --


function spell0_17152(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17152', 575, 1)
end

function spell1_17152(pUnit, Event) --@Cutdown,n/a--
pUnit:FullCastSpellOnTarget(32009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17152', 654, 1)
end

function Sorts_17152(pUnit, Event)
local choix_sorts_17152 = math.random(0, 1)
if choix_sorts_17152 == 0 then
pUnit:RegisterEvent('spell0_17152', 1, 1)
end
if choix_sorts_17152 == 1 then
pUnit:RegisterEvent('spell1_17152', 1, 1)
end
end

function mob17152_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17152', math.random(1500, 3000), 1)
end

function mob17152_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17152_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17152_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17152, 1, 'mob17152_Action')
RegisterUnitEvent(17152, 2, 'mob17152_Leave')
RegisterUnitEvent(17152, 3, 'mob17152_Kill')
RegisterUnitEvent(17152, 4, 'mob17152_Die')
